package com.toommi.refuse.enums;

/**
 * ..
 * 后台管理 异常信息枚举
 *
 * @author yangg
 * @since 2019-07-24 09:52
 */
public enum AdminExceptionEnum {
    /**
     * 用户名重复
     */
    INVALID_USERNAME_REPEAT(1001, "该用户名已被使用"),

    INVlLID_USERNAME_FORMAT(1002, "用户名不能为空，且长度不能大于10"),

    INVALID_PASSWORD_FORMAT(1003, "密码不能为空,且长度不能小于6"),

    INVALID_PHONE_NULL(1004, "手机号不能为空"),

    INVALID_PHONE_REPEAT(1005, "该手机号已被使用"),

    INVALID_USER_NULL(1006, "用户不存在"),

    INVALID_USERNAME_NULL(1007, "用户名不能为空"),

    INVALID_PASSWORD_NULL(1008, "密码不能为空"),

    INVALID_NAME_PASSWORD(1009, "用户名或密码错误"),

    INVALID_USER_LOCKED(1010, "该账号已被冻结"),

    INVALID_SYS_ROLENAME_NULL(1011, "角色名称不能为空"),

    INVALID_SYS_ROLENAME_REPEAT(1012, "角色名称已存在"),

    INVALID_SYS_ROLE_NULL(1013, "角色不存在"),

    INVALID_SYS_PERMISSION(1014, "权限信息错误"),

    INVALID_RECYCLABLE_PRICE_TYPE_NULL(1015, "分类信息不存在"),

    INVALID_RECYCLABLE_PRICE_NEIGHBOURHOOD_NULL(1016, "小区信息不存在"),

    INVALID_RECYCLABLE_PRICE_DATE_NULL(1017, "日期参数错误"),

    INVALID_RECYCLABLE_PRICE_NULL(1018,"价格信息不存在"),

    INVALID_MOTORCADE_NAME_NULL(1019,"车队名称不能为空"),


    END(9999, "END");

    private int code;

    private String message;

    public int getCode() {
        return code;
    }

    AdminExceptionEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getMessage() {
        return message;
    }}
